package com.clwl.supervise.superviseapp.mapper.base;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.clwl.supervise.superviseapp.entity.base.SysDictData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    /**
     * 通过字典类型获取字典内容
     *
     * @param dictTypeCode 字典code
     * @return
     */
    List<SysDictData> selectByDictTypeCode(String dictTypeCode);

    /**
     * 按字典编号和字段值获-查询职务信息
     *
     * @param dictTypeCode
     * @param dictValue
     * @return
     */
    SysDictData queryDictInfoByTypeCode(@Param("dictTypeCode") String dictTypeCode, @Param("dictValue") String dictValue);

}